From: Andrew Cooper Date: Tue, 27 Jan 2015 20:34:02 +0000 (+0000) Subject: tools/libxl: Correct static pattern rule for pkgconfig files X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3845 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=027af8cdb348a97478a177d13871cacaa9b03366;p=xen.git tools/libxl: Correct static pattern rule for pkgconfig files Attempting to build libxl causes Make to emit the following warnings andrewcoop@andrewcoop:xen.git$ make -C tools/libxl all ... Makefile:253: target `xenlight.pc' doesn't match the target pattern Makefile:253: target `xlutil.pc' doesn't match the target pattern ... because the static pattern rule is malformed. 'Makefile' as the only prereq-pattern does not contain a pattern. The rule ends up working because of the use of $@.in where $< should have been used, but lacked any dependency between a $FOO.pc and its .in source file. Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson CC: Wei Liu Acked-by: Ian Campbell --- diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 5df49703d2..7329521460 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -250,8 +250,8 @@ libxl-save-helper: $(SAVE_HELPER_OBJS) libxenlight.so testidl: testidl.o libxlutil.so libxenlight.so $(CC) $(LDFLAGS) -o $@ testidl.o libxlutil.so $(LDLIBS_libxenlight) $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS) -$(PKG_CONFIG): %.in : Makefile - @sed -e 's/@@version@@/$(MAJOR).$(MINOR)/g' < $@.in > $@.new +$(PKG_CONFIG): % : %.in Makefile + @sed -e 's/@@version@@/$(MAJOR).$(MINOR)/g' < $< > $@.new @mv -f $@.new $@ .PHONY: install